package com.health.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author sanchuan
 * @since 2023-04-20
 */
@Getter
@Setter
@TableName("t_role")
@ApiModel(value = "TRole对象", description = "")
public class TRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID，自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("角色名称")
    private String name;

    @ApiModelProperty("部门描述")
    private String description;

    @ApiModelProperty("部门ID")
    private Integer departmentId;


    @ApiModelProperty("0:下架 1：上架")
    private Boolean isShelves;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除")
    @TableLogic
    private Boolean isDeleted;
}
